package com.ZengQi.event.controller;

import com.ZengQi.event.entity.Topic;
import com.ZengQi.event.service.TopicService;
import com.ZengQi.event.service.impl.TopicServiceImpl;
import com.ZengQi.event.view.VisitorSearchView;
import com.ZengQi.event.view.VisitorsMainView;

import java.util.List;

public class VisitorSearchViewController {
    private VisitorSearchView visitorSearchView;
    private VisitorsMainView visitorsMainView;
    private TopicService topicService=new TopicServiceImpl();

    public VisitorSearchViewController(VisitorsMainView visitorsMainView,VisitorSearchView visitorSearchView){
        this.visitorSearchView=visitorSearchView;
        this.visitorsMainView=visitorsMainView;


    }

    public List<Topic> topicList(Topic conditionTopic){
        List<Topic> listTopic = topicService.findListTopic(conditionTopic);
        return listTopic;

    }


}
